/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mldn.demo;

/**
 *
 * @author Administrator
 */
public class ArrayCopyDemo2 {
    public static void main(String[] args){
        int[] i1 = {1, 2, 3, 4, 5, 6, 7, 8, 9};
        int[] i2 = {11, 22, 33, 44, 55, 66, 77, 88, 99};
        System.arraycopy(i1, 3, i2, 1, 3);
        print(i2);
    }
    
    public static void print(int x[]) {
        for (int i = 0; i < x.length; i++) {
            System.out.print(x[i] + ",");
        }
    }
}
